<?php

include("../utility/connection.php");
include("../model/mFile.php");
include("../model/mPaper.php");
session_start();

if ($_SERVER["REQUEST_METHOD"] == "POST") {
    
    $PaperId = trim(mysql_real_escape_string($_POST["hidPaperId"]));
    $result = fnDeleteFile($PaperId);
    if ($result) {
        $result1 = fnDeletePaper($PaperId);
        if ($result1) {
            header("location: ../ui/user/oldUser.php");
        }
    }
    
}

?>
